package org.simplextensions.registry;


public class ExtensionPointAdapter implements IExtensionPoint {

	private IExtensionRegistry extensionRegistry;
	
	private boolean started = false;

	public void start(IExtensionRegistry extensionRegistry) {
		this.started = true;
		this.extensionRegistry = extensionRegistry;
	}

	public void addExtension(Extension extension) {
	}

	public void removeExtension(Extension extension) {
	}

	public void stop(IExtensionRegistry extensionRegistry) {
		this.started = false;
		this.extensionRegistry = null;
	}

	public IExtensionRegistry getExtensionRegistry() {
		return extensionRegistry;
	}

	public boolean isStarted() {
		return started;
	}

}
